Fix warnings with Vulkan < 162
authorMatthias Clasen <mclasen@redhat.com>
Mon, 21 Dec 2020 23:04:16 +0000 (18:04 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 22 Dec 2020 01:00:16 +0000 (20:00 -0500)
Tiring to watch the Vulkan people stumble through
ABI and API compat, but what can you do.

gdk/gdkvulkancontext.c

index d0e47055c9f137a8e149f6535316f21a5cc6a346..a561476dce410ac21f2daf6023689b95357cad4d 100644 (file)
@@ -210,6 +210,10 @@ gdk_vulkan_strerror (VkResult result)
       return "An unknown error has occurred; either the application has provided invalid input, or an implementation failure has occurred.";
 #endif
 #if VK_HEADER_VERSION >= 135
+#if VK_HEADER_VERSION < 162
+    case VK_ERROR_INCOMPATIBLE_VERSION_KHR:
+      return "This error was removed by the Vulkan gods.";
+#endif
     case VK_THREAD_IDLE_KHR:
       return "A deferred operation is not complete but there is currently no work for this thread to do at the time of this call.";
     case VK_THREAD_DONE_KHR:
@@ -221,7 +225,7 @@ gdk_vulkan_strerror (VkResult result)
     case VK_ERROR_PIPELINE_COMPILE_REQUIRED_EXT:
       return "A requested pipeline creation would have required compilation, but the application requested compilation to not be performed.";
 #endif
-#if VK_HEADER_VERSION < 140
+#if VK_HEADER_VERSION < 142
     case VK_RESULT_RANGE_SIZE:
 #endif
     case VK_RESULT_MAX_ENUM: